package io.renren.modules.backstage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencent.common.pojo.Result;
import io.renren.common.utils.PageUtils;
import io.renren.modules.backstage.entity.VideoEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-04-25 13:39:07
 */
public interface VideoService extends IService<VideoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage1(Map<String, Object> params);

    Result register(String fileMd5, String fileName, String fileSize, String mimetype, String fileExt);

    Result checkchunk(String fileMd5, Integer chunk, Integer chunkSize);

    Result uploadChunk(MultipartFile file, String fileMd5, Integer chunk);

    Result mergechunks(String fileMd5, String fileName, Long fileSize, String mimetype, String fileExt);

    Result uploadVideo(MultipartFile file);

    void deleteByCid(Integer cid);

    void setURL(Map<String, Object> params);

    VideoEntity updateByVideoId(Integer vid);
}

